import http from './public'
// 登陆
export const userLogin = (params) => {
  return http.fetchPost('/login', params)
}
// 退出登陆
export const loginOut = (params) => {
  return http.fetchPost('/logout', params.params)
}
// 用户信息
export const userInfo = (params) => {
  return http.fetchPost('/getCurrent', params)
}
// 注册账号
export const register = (params) => {
  return http.fetchPost('/member/register', params)
}
// 上传图片
export const upload = (params) => {
  return http.fetchPost('/member/imgaeUpload', params)
}
// 修改头像
export const updateheadimage = (params) => {
  return http.fetchPost('/member/updateheadimage', params)
}
// 捐赠列表
export const thanksList = (params) => {
  return http.fetchGet('/member/thanks', params)
}

// 首页接口
/* export const navList = (params) => {
  return http.fetchGet('/goods/navList', params)
} */
// // 推荐板块
// export const recommend = (params) => {
//   return http.fetchGet('/goods/recommend', params)
// }
// 捐赠板块
export const thank = (params) => {
  return http.fetchGet('/goods/thank', params)
}
// 首页接口
export const productHome = (params) => {
  return http.fetchPost('/goods/select' + '?size=1000&startRow=0', params)
}
